package com.huang.foundation.endpoint;

import com.huang.entity.result.HStringResult;
import com.huang.foundation.entity.request.SensitiveWordsCheckParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author HuangShen
 * @Date 2022/3/2 08:04
 * @Describe
 */
@Api("敏感字过滤")
public interface SensitiveWordsApi {

    @ApiOperation(value = "敏感字检查接口")
    @PostMapping("/check/sensitive_words")
    HStringResult<List<String>> SensitiveWordsCheck(@RequestBody SensitiveWordsCheckParam sensitiveWordsCheckParam);


    @ApiOperation(value = "敏感字替换")
    @PostMapping("/replace/sensitive_words")
    HStringResult<String> SensitiveWordsReplace(@RequestBody SensitiveWordsCheckParam sensitiveWordsCheckParam);




}
